﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaxiOnline.DAL.Abstract;

namespace TaxiOnline.DAL.Models
{
    public class Region: Entity
    {
        
        public string Name { get; set; }
        public City City { get; set; }
        public virtual ICollection<Street> Streets { get; set; }

        public Region() {
            Id = -1;
            Name = String.Empty;
            City = new City();
            Streets = new List<Street>();
        }

        public Region(int id, string name, City city, ICollection<Street> streets)
        {
            Id = id;
            Name = name;
            City = city;
            Streets = streets;
        }
    }
}
